package com.jblv.frame.common.handler;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @author happyonion.yangtao
 * @version 1.0
 * @title WebAppConfigurer
 * @projectName jblv-frame
 * @packageName com.jblv.common.handler
 * @description WebAppConfigurer
 * @date Create at 2020/5/8 17:28
 * @since jdk1.8
 */
@Configuration
public class WebAppConfigurer extends WebMvcConfigurerAdapter {


    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new AuthInterceptor());
    }

}